package com.example.demo.controller;

import com.example.demo.test1.Test1Dao;

import com.example.demo.test2.Test2Dao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Autowired
    private Test1Dao test1Dao;
    @Autowired
    private Test2Dao test2Dao;

    @RequestMapping("/test1")
    public int addUser1(){
        return  test1Dao.addUser("test1","2");
    }
    @RequestMapping("/test2")
    public int addUser2(){
        return  test2Dao.addUser("test2","2");
    }


}
